package top.sjydzq.www.service;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import top.sjydzq.www.bean.CartItem;

import java.util.List;

@Repository("CartDAO")
@Mapper
public interface CartService {
    public List<CartItem> selectAll(int userId);
    public boolean add(int productId, int amount, int userId);
    public void changeAmount(int cartItemId, int amount, int userId);
    public void clear(int userId);
    public void deleteById(int cartItemId, int userId);
}
